<?php


namespace App\Starter;


use Elite\Infrastructure\Helper\Path;
use Elite\Infrastructure\Starter\BeforeStater;
use Elite\Infrastructure\Starter\StarterTransfer;

class PathBeforeStarter implements BeforeStater {

    public function start(StarterTransfer $starterTransfer) : void {
        defined('PUBLIC_DIR') ?? define('PUBLIC_DIR', Path::getPublicDir());
        defined('STORAGE_DIR') ?? define('STORAGE_DIR', Path::getStorageDir());
        defined('TMP_DIR') ??  define('TMP_DIR', Path::getTempDir());
    }
}